package com.zdp.filesync.config.client;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Data
@ConfigurationProperties("file-sync-client")
public class FileSyncClient {
    private List<FileSyncClientInfo>  infoList;

    private String test;

    public void copy(FileSyncClient fileSyncClient){
        this.infoList = fileSyncClient.getInfoList();
        this.test = fileSyncClient.getTest();
    }

}
